package com.greenleaf.entity;

import org.springframework.stereotype.Component;
/**
 * 用户表
 * */
@Component
public class User {
private Integer userId;//编号
private String userName;//用户名
private String password;//密码
private String userImg;//头像
public Integer getUserId() {
	return userId;
}
public void setUserId(Integer userId) {
	this.userId = userId;
}
public String getUserName() {
	return userName;
}
public void setUserName(String userName) {
	this.userName = userName;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public String getUserImg() {
	return userImg;
}
public void setUserImg(String userImg) {
	this.userImg = userImg;
}
public User(Integer userId, String userName, String password, String userImg) {
	super();
	this.userId = userId;
	this.userName = userName;
	this.password = password;
	this.userImg = userImg;
}
public User() {
	super();
	// TODO Auto-generated constructor stub
}
@Override
public String toString() {
	return "User [userId=" + userId + ", userName=" + userName + ", password=" + password + ", userImg=" + userImg
			+ "]";
}

}
